package com.aikg.kgrag_java.utils;

import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author tfan
 * @Description
 * @Date 2024/12/31 11:51
 **/
@Data
public class TaskStatus {
    private String taskId;
    private TaskState state;
    private int totalFiles;
    private int processedFiles;
    private List<OcrResult> results;
    private LocalDateTime createdTime;
    private LocalDateTime completedTime;
    private String errorMessage;

    public enum TaskState {
        PENDING, PROCESSING, COMPLETED, FAILED
    }
}
